"""条件判断"""
from sys import flags

age = 20
if age > 18:
    print('you age is', age)
    print('adult')

age = 16
if age > 18:
    print('you age is', age)
    print('adult')
else:
    print('you age is', age)
    print('teenager')

age = 6
if age > 18:
    print('you age is', age)
    print('adult')
elif 18 > age > 12:
    print('you age is', age)
    print('teenager')
else:
    print('baby')


birth = input('birth:')
# input()返回的数据类型是str，str不能直接和整数比较，必须先把str转换成整数。
birth = int(birth)
if birth > 2000:
    print('00后')
else:
    print('老毕登')

height = input('height:')
height = float(height)
weight = input('weight:')
weight = float(weight)
bmi = weight / (height * height)
if bmi < 18.5:
    print('太瘦')
elif 18.5 <= bmi < 25:
    print('正常')
elif 25 <= bmi < 28:
    print('过重')
elif 28 <= bmi < 32:
    print('肥胖')
else:
    print('严重肥胖')
